package com.woniu.cms.auth.core.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * @author lbhstart
 * @create 2022-09-19 20:34
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ApiModel(value = "UserVo分页数据", description = "")
public class PageUserVo {
    @ApiModelProperty("分页数据对象")
    private List<PageUser> users;

    @ApiModelProperty("当前页")
    private long current;

    @ApiModelProperty("每页显示条数")
    private long size;

    @ApiModelProperty("总记录数")
    private long total;

    @ApiModelProperty("总页数")
    private long pages;

    @ApiModelProperty("是否有上一页")
    private boolean hasPrevious;

    @ApiModelProperty("是否有下一页")
    private boolean hasNext;

}
